<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<link rel="icon" href="favicon.ico" type="image/x-icon"/>
<title>邮箱配置-系统设置-{$site.BACK_NAME}</title>
<include file="Public:jscss"/>
</head>
<body>
<div class="wrap">
 <include file="Public:head"/>
 <div class="mainBody">
  <include file="Public:left"/>
  <div id="Right">
   <div class="contentArea">
    <div class="Item hr">
     <div class="current">邮箱配置</div>
    </div>
    <form action="" method="post">
     <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table1">
      <tr>
       <th width="120">邮件服务器：</th>
       <td><input name="EMAIL_SMTP_HOST" type="text" class="input" size="40" value="{$cfg.EMAIL_SMTP_HOST}"/></td>
      </tr>
      <tr>
       <th>邮件发送端口：</th>
       <td><input class="input" name="EMAIL_SMTP_PORT" type="text" size="40" value="{$cfg.EMAIL_SMTP_PORT}"/></td>
      </tr>
      <tr>
       <th>发件人地址：</th>
       <td><input class="input" name="EMAIL_FROM_EMAIL" type="text" size="40" value="{$cfg.EMAIL_FROM_EMAIL}"/></td>
      </tr>
      <tr>
       <th>发件人名称：</th>
       <td><input class="input" name="EMAIL_FROM_NAME" type="text" size="40" value="{$cfg.EMAIL_FROM_NAME}"/></td>
      </tr>
      <tr>
       <th>验证用户名：</th>
       <td><input class="input" name="EMAIL_SMTP_USER" type="text" size="40" value="{$cfg.EMAIL_SMTP_USER}"/></td>
      </tr>
      <tr>
       <th>验证密码：</th>
       <td><input class="input" name="EMAIL_SMTP_PASS" type="password" size="40" value="{$cfg.EMAIL_SMTP_PASS}"/></td>
      </tr>
      <tr>
       <th>回复EMAIL：</th>
       <td><input class="input" name="EMIAL_REPLY_EMAIL" type="text" size="40" value="{$cfg.EMIAL_REPLY_EMAIL}"/> （留空则为发件人EMAIL）</td>
      </tr>
      <tr>
       <th>回复名称：</th>
       <td><input class="input" name="EMAIL_REPLY_NAME" type="text" size="40" value="{$cfg.EMAIL_REPLY_NAME}"/> （留空则为发件人名称）</td>
      </tr>
      <tr>
       <th>接收测试邮件地址：</th>
	   <td>
		<input class="input" name="EMAIL_TEST_EMAIL" type="text" size="40" value="{$cfg.EMAIL_TEST_EMAIL}"/> （只有填写了接收测试邮件地址方可测试邮件配置是否成功）
	   </td>
      </tr>
     </table>
    </form>
    <div class="commonBtnArea" >
     <button class="btn cfz_submit">提交</button>
     <button class="btn cfz_test">测试</button>
    </div>
   </div>
  </div>
 </div>
</div>
<div class="clear"></div>
<include file="Public:foot"/>
<script type="text/javascript">
$(function(){
	//表单提交
	$(".cfz_submit").click(function(){
        commonAjaxSubmit();
    });
	//测试邮箱
    $(".cfz_test").click(function(){
        if($.trim($("input[name='EMAIL_TEST_EMAIL']").val())==''){
			$.jBox.tip('没有填写接收测试邮件地址，无法发送测试邮件', 'info');
            return false;
        }
        commonAjaxSubmit('{:U("Info/etest")}');
    });
});
</script>
</body>
</html>